// TODO: Move main.cpp to RuntimeEnvironment.

#include "rte.h"
#include "application.h"

//extern "C"
int main(int argc, char *argv[])
{
	cnc::rtl::RuntimeEnvironment *rte = cnc::rtl::getRuntimeEnvironment();
	rte->setupEnvironment(argc, argv);
	cnc::rtl::Application *application = cnc::rtl::getApplication();
	if (application != 0)
		return application->main();
	return 0;
}

